﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class FXPlayer : MonoBehaviour
{
    public Animator anim;

    public GameObject fx1;
    public GameObject fx2;

    private void OnTriggerEnter2D(Collider2D collision)
    {
        if(collision.tag == "Player")
        {
            fx1.SetActive(true);
            fx2.SetActive(true);

            anim.enabled = true;
        }
    }
}
